package com.wx.wrapper;

import com.wx.chapter10.final_.innerclass.Test;

/**
 * @Author : 佩萁
 * Description :
 * @Create : 2023/7/11 - 8:49
 */
public class Test1 {
    String str = new String("hsp");
    final char[] ch = {'j', 'a', 'v', 'a'};

    public void change(String str, char ch[]) {
        str = "java";
        ch[0] = 'h';
    }

    public static void main(String[] args) {
        Test1 ex = new Test1();
        ex.change(ex.str, ex.ch);
        System.out.println(ex.str + "and");
        System.out.println(ex.ch);
    }
}
